<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <title></title>
    </head>
    <body>
        <script>
            // console.log(Math.pow(4,2))
            function swhpower(power){
                return function(number){
                    return Math.pow(number,power)
                }
            }
            let swhp1 = swhpower(2)
            let swhp2 = swhpower(3)
            console.log(swhp1(6))
            console.log(swhp2(6)) 
        </script>
    </body>
</html>